﻿<%@ Page Title="" Language="C#" MasterPageFile="~/Site.Master" AutoEventWireup="true" CodeBehind="AdicionarFotografia.aspx.cs" Inherits="ProjectoPV_ESW.Account.Fotografias.AdicionarFotografia" %>
<asp:Content ID="Content1" ContentPlaceHolderID="HeadContent" runat="server">
</asp:Content>
<asp:Content ID="Content2" ContentPlaceHolderID="MainContent" runat="server">
<div align="center">
    <h1 align="center">
        Adicionar fotografia</h1>
    <p align="center">
        Seleccione o dia:</p>
    <p align="center">
        <asp:Calendar ID="Calendar1" runat="server" BackColor="White" 
            BorderColor="White" BorderWidth="1px" Font-Names="Verdana" Font-Size="9pt" 
            ForeColor="Black" Height="16px" NextPrevFormat="FullMonth" Width="315px">
            <DayHeaderStyle Font-Bold="True" Font-Size="8pt" />
            <NextPrevStyle Font-Bold="True" Font-Size="8pt" ForeColor="#333333" 
                VerticalAlign="Bottom" />
            <OtherMonthDayStyle ForeColor="#999999" />
            <SelectedDayStyle BackColor="#333399" ForeColor="White" />
            <TitleStyle BackColor="White" BorderColor="Black" BorderWidth="4px" 
                Font-Bold="True" Font-Size="12pt" ForeColor="#333399" />
            <TodayDayStyle BackColor="#CCCCCC" />
        </asp:Calendar>
    </p>
    <p align="center">
        Escreva o path:</p>
    <p align="center">
        <asp:TextBox ID="TextBox1" runat="server" Height="29px" Width="303px"></asp:TextBox>
    </p>
    <p align="center">
        Escreva a descrição:</p>
    <p align="center">
        <asp:TextBox ID="TextBox2" runat="server" Height="97px" Width="302px"></asp:TextBox>
    </p>
    <p align="center">
        Escolha a criança:</p>
    <p align="center">
        <asp:DropDownList ID="DropDownList1" runat="server" 
            DataSourceID="SqlDataSource1" DataTextField="Nome" DataValueField="CriancaId" 
            Height="46px" Width="308px">
        </asp:DropDownList>
    </p>
    <p align="center">
        Escolha a sala:</p>
    <p align="center">
        <asp:DropDownList ID="DropDownList2" runat="server" 
            DataSourceID="SqlDataSource2" DataTextField="NomeSala" DataValueField="SalaId" 
            Height="43px" Width="305px">
        </asp:DropDownList>
    </p>
    <p align="center">
        &nbsp;
        <asp:Button ID="ButtonAdicionar" runat="server" onclick="ButtonAdicionar_Click" 
            Text="Adicionar" />
&nbsp;&nbsp;
        </p>
    <p align="center">
        <asp:Label ID="LabelOk" runat="server" Font-Bold="True" ForeColor="#009933"></asp:Label>
    </p>
    <p align="center">
        <asp:Label ID="LabelErr" runat="server" ForeColor="Red"></asp:Label>
    </p>
    <p align="center">
        <asp:SqlDataSource ID="SqlDataSource1" runat="server" 
            ConnectionString="<%$ ConnectionStrings:JardimEntitiesString %>" 
            ProviderName="<%$ ConnectionStrings:JardimEntitiesString.ProviderName %>" 
            SelectCommand="SELECT * FROM [Crianca]"></asp:SqlDataSource>
        <asp:SqlDataSource ID="SqlDataSource2" runat="server" 
            ConnectionString="<%$ ConnectionStrings:JardimEntitiesString %>" 
            ProviderName="<%$ ConnectionStrings:JardimEntitiesString.ProviderName %>" 
            SelectCommand="SELECT * FROM [Sala]"></asp:SqlDataSource>
    </p>
    </div>
</asp:Content>
